x86: physdev_[un]map_pirq() use rcu_lock_target_domain_by_id().
authorKeir Fraser <keir@xen.org>
Wed, 26 Jan 2011 08:56:44 +0000 (08:56 +0000)
committerKeir Fraser <keir@xen.org>
Wed, 26 Jan 2011 08:56:44 +0000 (08:56 +0000)
commitf96101286a629a2cb4d4ebd24a1e57bdfc74a184
tree166589b6f1435612f6f1d7f3e6e2fae483e451d0
parent56bcfc196f19d9667c5ae8f6dc40d7e32a59a00e
x86: physdev_[un]map_pirq() use rcu_lock_target_domain_by_id().

More idiomatic, and avoids accidental failure to check caller
privilege. For example, the unmap path was not checking for any
privilege before calling unmap_domain_pirq_emuirq(), which can't be
right.

Signed-off-by: Keir Fraser <keir@xen.org>
xen/arch/x86/physdev.c